<!--分页组件-->
<div class="page-box">
  <a class="pull-left">总计 {{pageParams.totalNum}} 条，第 {{pageParams.curPage}} / {{pageParams.totalPage}} 页</a>
  <div class="pull-right" *ngIf="pageParams.totalPage>1 && pageParams.totalNum>0">
    <button [routerLink]="['./']" [disabled]="pageParams.curPage<=5"
            (click)="changePage(pageParams.curPage-5)" [queryParams]="{pageNo:pageParams.curPage-5}"><<</button>
    <button [routerLink]="['./']" (click)="changePage(pageParams.curPage-1)"
            [queryParams]="{pageNo:pageParams.curPage-1}" [disabled]="pageParams.curPage==1">上一页</button>
    <button [routerLink]="['./']" [disabled]="pageParams.curPage==page.pageNo"
            (click)="changePage(page.pageNo)" [queryParams]="page" *ngFor="let page of getPageList(pageParams)">
      {{page.pageNo}}
    </button>
    <button [routerLink]="['./']" (click)="changePage(pageParams.curPage-(-1))"
            [queryParams]="{pageNo:pageParams.curPage-(-1)}" [disabled]="pageParams.curPage==pageParams.totalPage">下一页</button>
    <button [routerLink]="['./']" [disabled]="pageParams.totalPage-pageParams.curPage<=5"
            (click)="changePage(pageParams.curPage-(-5))" [queryParams]="{pageNo:pageParams.curPage-(-5)}">>></button>
  </div>
  <div *ngIf="!pageParams.totalNum">
    空空如也
  </div>
</div>
